package iscte.ai.kcgtd;

import java.util.Comparator;


public class SortStatsList implements Comparator<PeriodStats> {

	private String type;

	public SortStatsList(String type) {
		this.type = type;
	}
	
	@Override
	public int compare(PeriodStats o1, PeriodStats o2) {
		return  (int)o2.getOverallPoints(type) - (int)o1.getOverallPoints(type);
	}

}
